DescriptorSize

enum DescriptorSize : ProtocolMessageEnum

Protobuf enum DescriptorSize

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
val DS_1_VALUE: Int = 1
1 word; up to 15 byte fields, no arrays
DS_1 = 1;
Link copied to clipboard
val DS_2_VALUE: Int = 2
2 words; up to 4095 byte fields, 4095 entry arrays
DS_2 = 2;
Link copied to clipboard
val DS_4_VALUE: Int = 4
4 words; up to 2^32-1 byte fields, 2^16-1 entry arrays
DS_4 = 4;
Link copied to clipboard
val DS_8_VALUE: Int = 8
8 words; up to 2^32-1 entry arrays
DS_8 = 8;
Link copied to clipboard
Select minimal size based on field type
DS_AUTO = 0;

Functions

Link copied to clipboard
Link copied to clipboard
open fun getDescriptor(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getDescriptorForType(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getNumber(): Int
Link copied to clipboard
fun getValueDescriptor(): Descriptors.EnumValueDescriptor
Link copied to clipboard
open fun internalGetValueMap(): Internal.EnumLiteMap<Nanopb.DescriptorSize>
Link copied to clipboard
open fun valueOf(desc: Descriptors.EnumValueDescriptor): Nanopb.DescriptorSize

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.